#ifndef __PACKET_H__
#define __PACKET_H__
#include "socket.h"

enum 
{
	REQ_USE_BAG_ITEM = 0x137,
};

typedef struct
{
	unsigned short msg_idx __attribute__((packed));
	unsigned char drop_item_idx __attribute__((packed));
}req_use_bag_item;

bool use_bag_item(unsigned char solt_index)
{
	req_use_bag_item use_item_msg;
	use_item_msg.msg_idx = REQ_USE_BAG_ITEM;
	use_item_msg.drop_item_idx = solt_index;
	send_msg(sizeof(use_item_msg), &use_item_msg);
}
#endif//__PACKET_H__